package com.example.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.example.service.TestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Reference
    private TestService testService;
    @RequestMapping("/fun1")
    public String test(){
        try{
            testService.fun1();
            System.out.println("进入系统");
        }catch (Exception e)
        {
            e.printStackTrace();
            return "false";
        }
        return "true";
    }
}
